package com.yunxin.core.domain.model.user;

import com.yunxin.core.application.dto.order.OrderUserApplyPageDTO;
import com.yunxin.core.infra.persistence.entity.user.UserIpInfoDO;

import java.util.List;

/**
 * @author zero°
 * @since 2023-11-25
 */
public interface UserIpInfoRepository {

    /**
     * 保存
     * @param userIpInfo userIpInfo
     * @return boolean
     */
    boolean saveUserIpInfo(UserIpInfo userIpInfo);

    /**
     * 根据ip及渠道推广code获取 ip信息id
     * @param ip ip
     * @param channelPromotionCode channelPromotionCode
     * @return Long
     */
    Long getUserIpInfoIdByVisitorAndChannelPromotion(String ip, String channelPromotionCode);

    List<UserIpInfo> selectIpList(String start,String end);
}
